package com.tudouji.project.bill.service;

import com.tudouji.framework.web.domain.AjaxResult;
import com.tudouji.project.bill.domain.Sellform;
import com.tudouji.project.bill.domain.SellformOld;
import com.tudouji.project.bill.domain.Whoutform;
import com.tudouji.project.bill.domain.vo.SellformListRep;
import com.tudouji.project.bill.domain.vo.SellformRep;
import com.tudouji.project.system.domain.SysUser;

import java.util.List;

/**
 * 销售订单Service接口
 *
 * @author wf
 * @date 2021-01-13
 */
public interface ISellformService
{
    /**
     * 查询销售订单
     *
     * @return 销售订单
     */
    public Sellform selectSellformById(Long id);

    public Sellform selectSellformByGuid(String guid);


    public SellformOld selectSellformOldByGuid(String guid);
    /**
     * 查询销售订单列表
     *
     * @param sellform 销售订单
     * @return 销售订单集合
     */
    public List<Sellform> selectSellformList(Sellform sellform);
    public List<SellformListRep> pagePCList(Sellform sellform, boolean page);
    public SellformListRep pagePCListSum(Sellform sellform);

    /**
     * 新增销售订单
     *
     * @param sellform 销售订单
     * @return 结果
     */
    public int insertSellform(Sellform sellform);

    /**
     * 修改销售订单
     *
     * @param sellform 销售订单
     * @return 结果
     */
    public int updateSellform(Sellform sellform);

    /**
     * 批量删除销售订单
     *
     * @param guids 需要删除的销售订单ID
     * @return 结果
     */
    public int deleteSellformByIds(String[] guids);

    /**
     * 删除销售订单信息
     *
     * @param guid 销售订单ID
     * @return 结果
     */
    public int deleteSellformById(String guid);

    public List<SellformRep> findRpt(SellformRep entity);

    public Sellform findDetail(Sellform entity);

    /**
     * 根据编码查询
     *
     * @param sellcode
     * @return
     */
    public Sellform selectSellformByCode(String sellcode);
    public Sellform selectSellformRejectByCode(Sellform sellform);

    AjaxResult usertransfer(String touser, String fromuser);

    AjaxResult saveOrUpdate(Sellform entity, Long deptId, String fileIds, Long taskid, String opinion, SysUser sysUser);

    public AjaxResult dispatch(Sellform sellform, Long taskid, String opinion, String fileIds);

    public AjaxResult approval(Long id, Long taskid, String opinion, String fileIds);
    public AjaxResult zgsp(Long id, Long taskid, String opinion, String fileIds, Integer innerOut);

    public AjaxResult refuse(Long id, String fileIds, String opinion, Long taskid, Long refuseNodeid, Long backUserid);

    public  AjaxResult partition(Long taskid, String fileIds, Sellform sellform);

    List<Sellform> wxList(Sellform sellform, String status, String functionType);

    AjaxResult del(Long id);

    AjaxResult review(Long id, String partitiontype);

    AjaxResult partOrDispatch(Long taskid, String fileIds, Sellform sellform, String opinion);

    AjaxResult whoutBack(Long id, String fileIds, String opinion, Long taskid);

    AjaxResult settle(Long id, String fileIds, String opinion, Long taskid, Sellform sellform);
    AjaxResult recharge(Long id, String fileIds, String opinion, Long taskid, Sellform sellform);
    public void settleHexiao(Sellform sellform, SysUser user);
    AjaxResult getSettlementInfo(Long id);
    //20240104 销售订单出库
    public AjaxResult whout(Long id, Whoutform entity, String fileIds, String opinion, Long taskid, String opttype);

    AjaxResult nbdj(Sellform entity, Long taskid, String opinion, String fileIds);
}
